﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IndirectX.DXGI;

namespace IndirectX.Direct3D11
{
    public class Resource : IDisposable
    {
        public static T FromSwapChain<T>(SwapChain swapChain, int index) where T : Resource
        {
            return (T)(object)swapChain.BackBuffer;
        }

        public void Dispose()
        {
            
        }
    }
}
